package com.web.exiaodao.business.repository;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import com.web.exiaodao.business.entity.OrderDetail;

import java.util.Collection;
import java.util.List;


public interface OrderDetailRepository extends
		PagingAndSortingRepository<OrderDetail, Long>,
		JpaSpecificationExecutor<OrderDetail> {

	public OrderDetail findById(Long id);
	public OrderDetail findByIdAndStatusNot(Long id, Integer status);
	public List<OrderDetail> findByOrderNoAndStatusNot(String orderNo, Integer status);
	public List<OrderDetail> findByOrderNoInAndStatusNot(Collection<String> orderNo, Integer status);
}
